using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Data;

namespace UnitTestWinRTConverters.ObjectsTestBase
{
    public class UITextBlockTest : UIObjectTestBase
    {
        private readonly TextBlock _textBlock;

        public override object ConvertValue
        {
            get { return _textBlock.Text; }
        }

        public UITextBlockTest(IValueConverter converter, object value, object converterParameter = null)
            : base(converter, BindingMode.OneWay, value, converterParameter)
        {
            _textBlock = new TextBlock();
            _textBlock.SetBinding(TextBlock.TextProperty, this.BindingObject);    
        }
    }
}
